package com.rany.day06.demo02;

import java.util.Date;

public class DemoDate {
    public static void main(String[] args) {
        demo01();
        demo02(0L);

    }

    private static void demo02(Long a) {
        Date d = new Date(a);
        System.out.println(d);

    }

    private static void demo01() {
        Date d = new Date();
        System.out.println(d);
        System.out.println(d.getTime());
    }
}
